<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE HTML>
<ui:composition template="/dinamic/template/template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	
	<ui:define name="conteudo">
		<h:form>
			<p:panel>
				<p:outputLabel styleClass="name" value="Titulo: " />
				<h:inputText size="60" value="#{editaPostagemManagedBean.postagem.titulo}" maxlength="60"/>
				<br/>
				<p:outputLabel styleClass="name" value="Assunto(s): " />
        			<ui:repeat var="assuntos" value="#{editaPostagemManagedBean.postagem.assuntos}">
        				<h:outputText value="#{assuntos.nomeAssunto}"/>
        				<h:outputText value=" " />
        			</ui:repeat>
				<br/>
				<p:editor id="editor" value="#{editaPostagemManagedBean.postagem.mensagem}" width="600" />
				<p:commandButton value="Editar!" action="#{editaPostagemManagedBean.editarPostagem()}" ajax="false">
				</p:commandButton>
			</p:panel>
		</h:form> 
	</ui:define>
</ui:composition>